﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class DN
    {
        private string b;
        private IUSB u1;
        private IUSB u2;

        public DN(string b)
        {
            this.b = b;
        }
        public DN()
        { }
        public string B
        {
            get { return this.b; }
            set { this.b = value; }
        }
        public IUSB U1
        {
            get { return this.u1; }
            set { this.u1 = value; }
        }
        public IUSB U2
        {
            get { return this.u1; }
            set { this.u2 = value; }
        }
        public void Start()
        {
            Console.WriteLine("{0}电脑开机中", this.b);
        }
        public void End()
        {
            Console.WriteLine("{0}电脑关机中", this.b);
        }
        public void ReadData()
        {
            u1.Read();
            u2.Read();
        }
        public void WriteData()
        {
            u1.Write();
            u2.Write();
        }
    }
}
